# 编译产物路径
base_path=$(cat base-path.txt)
out_path=$base_path$"/output/a.out"

# 调试脚本路径
cfg_sh_path=$(cat $base_path$"/example/cfg-sh/openocd-script-path.txt")

openocd -f $cfg_sh_path"/interface/cmsis-dap.cfg" -f $cfg_sh_path"/target/gd32vf103.cfg" &
gdb-multiarch $out_path -x gdb-setup.txt